<?php

namespace app\admin\validate;

use think\Validate;

class AdminValidate extends Validate
{
    protected $rule =   [
        'username'  => 'require',
        'status'  => 'require',
        'role_id'  => 'require',  
    ];
    
    protected $message  =   [
        'username.require' => '用户名必须',
        'status.require' => '状态必须',
        'role_id.require' => '角色必须',
    ];
}